import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: 'Fantasi 前端文檔',
  description: 'Fantasi 前端開發相關文件',
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '主頁', link: '/' },
      { text: '文件', link: '/main' },
    ],

    sidebar: [
      {
        text: '工作流程與規範',
        items: [
          { text: 'Readme', link: '/main.md' },
          { text: 'Git Commit 與 分支規範', link: '/git.md' },
          { text: 'Pack 打包工具', link: '/pack.md' },
          { text: 'SSL 設定', link: '/ssl.md' },
          { text: 'i18n 語言包設定 與 更新', link: '/i18n.md' },
          { text: 'RWD 切版', link: '/layout.md' },
        ],
        collapsed: false,
      },
      {
        text: 'JS Module',
        items: [
          { text: 'Http Request 請求模組', link: '/http.md' },
          { text: 'Yup 驗證模組', link: '/yup.md' },
          { text: 'Vuetify 樣式配置', link: '/vuetify.md' },
          { text: 'Zod 驗證 API 資料結構', link: '/zod.md' },
        ],
        collapsed: false,
      },
      {
        text: 'Component',
        items: [
          { text: 'Dialog & PopupMessage 組件', link: '/dialog.md' },
          { text: 'Form 表單相關組件', link: '/form.md' },
          { text: '客製化 icon 設定', link: '/icon.md' },
          { text: 'Vue3 Lottie 動畫設置方式', link: '/lottie.md' },
        ],
        collapsed: false,
      },
      {
        text: '交接文件',
        items: [{ text: 'Lulu', link: '/lulu-note.md' }],
        collapsed: false,
      },
    ],
    // socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }],
    search: { provider: 'local' },
  },
})
